function GetHttpInterceptor(webWindow) {
  //
  try {
    webWindow.webContents.debugger.attach('1.1')
  } catch (err) {
    console.log('调试器连接失败: ', err)
  }

  webWindow.webContents.debugger.on('detach', (_, reason) => {
    console.log('调试器由于以下原因而分离 : ', reason)
  })
}

export { GetHttpInterceptor }
